﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UcAsp.Net.Model;
using System.Text.RegularExpressions;
namespace UcAsp.Net.BLL
{
    public class ClearCodeBLL
    {
        public static string ClearCode(string code)
        {

            List<DefinedCode> list = DefinedCodeBLL.DefinedCodeName("ClearCode");
            foreach (DefinedCode defined in list)
            {
                string regtxt = defined.DefinedDesc.Replace("(", "\\(").Replace(")", "\\)").Replace("\"", "\\\"").Replace("[","\\[").Replace("]","\\]");
                code = Regex.Replace(code,regtxt , string.Empty, RegexOptions.IgnoreCase);
            }

            return code;
        }
    }
}
